<template>
  <div id="app">
    <!--头部-->
    <Header></Header>
    <router-view/>
    <!--底部--->
    <Footer></Footer>
  </div>
</template>
<script>
import Header from '@/components/common/header';
import Footer from '@/components/common/footer';
export default {
  name: 'App',
  components:{
    Header,
    Footer
  },
  data () {
    return {
      id: ''
    }
  },
  methods : {
    testPost(){
      this.$httpPost('/userPath/test/3',{username:"budayi"}).then(res =>{
        console.log("POST:" + res);
      })
    },
    testGet(){
      this.$httpGet('/userPath/test/3',{username:"libofei"}).then(res =>{
        console.log("GET:" + res);
      })
    },
  },
  created(){
    this.testPost();
    this.testGet();
  },

  mounted(){

  }
}
</script>

<style>

</style>
